# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libxkbui
pkgver=1.0.2
pkgrel=6
pkgdesc="X11 keyboard UI presentation library"
arch=('x86_64')
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('libxt' 'libxkbfile')
makedepends=('pkgconfig')
source=("${url}/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2"
        'LICENSE')
sha512sums=('ccfa2c8f740ae66e5b7c2ed19a8243696a34fb60d45d8d01bb540eb925d69c95ebe16b7a54f4362acc3170b1543f44eea8910135b11c4af88abce3637726062d'
            'b944ab5f3806a0a114c13e8d4eb89161070078db9fad4dd32d319a438393e4fb42dc0148955d044b0d420e379bae5056d4ed6b5c5986d4746d601bbd6ba247ee')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
